<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html lang="en">
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8">
	<title>Document</title>
	<!-- <script type="text/javascript" src="//cdn.bootcss.com/jquery/1.7.1/jquery.min.js"></script> -->
	<script type="text/javascript" src="./jquery-1.7.2.js"></script>
	<script type="text/javascript">
		$(function  () {
			
			// $('#box').hover(function() {
			// 	$(this).css('width', '300px');
			// }, function() {
			// 	$(this).css('width', '200px');
			// });


			$('.btn').toggle(function() {
				$('#box').stop().animate({'left': '1000px'},1000);
			}, function() {
				$('#box').stop().animate({'left': '0px'},1000);
			});

			// $('.box').click(function(event) {
			// 	$(this).addClass('ative');
			// });
			




		})
	</script>
	<style type="text/css">
		.box{
			width: 200px;
			height: 200px;
			background: red url() 0 0 no-repeat;
			position: relative;
			top:0px;
			left: 0px;
		}
		.ative{
			background: blue url() 0 0 no-repeat;
		}

	</style>
</head>
<body>
	<input type="button" value="开始" class="btn">
	<div class="box" id="box">
		<div class="son">
			
		</div>
	</div>
	
</body>
</html>